.courseAddModal {
    /* 定位和尺寸 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* 背景遮罩层 */
    background-color: rgba(0, 0, 0, 0.5);

    /* 确保在最上层 */
    z-index: 998;

    /* 居中显示 */
    display: none;
    align-items: center;
    justify-content: center;

    /* 添加淡入动画效果 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 显示状态的模态框 */
.courseAddModal.show {
    display: flex;
    opacity: 1;
}

/* 模态框内容区域 */
.courseAddModal .modal-content {
    background: linear-gradient(135deg, #ddf1f6 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    min-width: 450px;
    max-width: 100%;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

/* 模态框显示动画 */
.courseAddModal.show .modal-content {
    transform: scale(1);
}

/* 模态框表单容器 */
.courseAddModal .modal-content form {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 表单标题 */
.courseAddModal .modal-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

/* 表单标签 */
.courseAddModal .modal-content form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
    font-size: 14px;
}

/* 表单输入框 */
.courseAddModal .modal-content form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.courseAddModal .modal-content form input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* 表单提交按钮 */
.courseAddModal .modal-content form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(120deg, #3498db, #2c3e50);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.courseAddModal .modal-content form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.courseAddModal .modal-content form button:active {
    transform: translateY(0);
}

/* 关闭按钮样式 */
.courseAddModal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 999;
}

.courseAddModal .close-btn:hover {
    background: #c0392b;
    transform: rotate(90deg);
}

